package demo1;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-10-30
 * Time: 14:30
 */




public class October {


    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        try{
            System.out.println("输入被除数：");
            double a = sc.nextDouble();
            System.out.println("请输入除数：");
            double b = sc.nextDouble();
            double ret = a/b;
            if(a == 13&&b == 4){
                throw new argumentException("输入被除数不能为13，除数不能为4！");
            }
            System.out.println("结果为："+ret);
        }catch(argumentException e){
            e.printStackTrace();
        }finally {
            System.out.println("运算结束");
            sc.close();
        }
    }
}
